# -*- coding: utf-8 -*-
from pymongo import Connection


class MongoModel():
    
    def __init__(self, host, port=27017):
        self.connection = Connection(host, port)
    
    def __del__(self):
        self.connection.end_request()